undo unnecessary changes