correct implementation for timer 0 #20