set time for waiting to 5000