Three days after the lock-in at Ridgeway, Carly tells Freddie that she saw him and Sam kiss. Both Carly and Freddie don't know where Sam has gone to. So Freddie and Carly track down the location of Sam's pear phone via www.mypearphone.com using Sam's username and password. It comes up as 'Troubled Waters Mental Hospital.'
Carly, Freddie and Gibby come across Caleb who is played by 'Jim Parsons' who believes he is from the future by telling them certain stories that he thinks has already happened.
The iCarly gang try to leave with Sam but they are soon locked in, since Sam is under 18 and needs permission from a parent.
The iCarly gang think of a solution, they get Spencer to dress up as Sam's mum but a patient blows his cover.
They eventually do iCarly from the hospital where Freddie tells everyone how he really feels for Sam. Freddie and Sam then kiss.