issue with looping of timer task