changes from setInterval to setTimeout

changes from setInterval to setTimeout. and saving the timer in the object itself