adding method for discarding the changes to a single record