fix spacing
idea to fix undo/redo persistence and hopefully speed it up