updates to undo