don't reset inside the loop.