update to undo part