undo works somewhat