surely a candidate for timer1 and gate control