undo edit. compact and streamline