the timer loop is working