update time to wait