opt: zero runs more efficiently
debug: add loop trip counters