changed wait_time