undo logic w var pause