increase the sleep time of the func waitfor