drafted code for sleepIn