change the wait method to regular sleep()