resetting everything properly