make timer restartable