copied code from timer not timer2 the first time around