corrected the timer delay