error handling for reset