remove sleep function