new version of diagram