changed delay to use timer for count down