initialize timer only once