refactor diagrams