added the diagram