delete sleep function.