undo main changes