undo some logic