trying to develop the diagram analysis