method for total resetting