fixed error 'sleep' was not declared in this scope