resetting main