minor refactoring of timer and instructions