refining sub diagrams