reset to 0 during counting properly