commenting and simplification of the reset