added example of timer gating