changed sleepInterval property type to NSTimeInterval