changed the timer interrupt if statement