added time to sleep