removed superfluous state reset