made makePhaseDiagram public