persisting diagrams solved