renaming the diagram