without reset
with reset