replace timer with timer2