changed _sleepInterval type to NSTimeInterval