undo and restore several times