sleep function removed