Don't call this diagram2. Always pick good meaningful names. In this case diagramNode is better.