diagram representation module