working on phase equilibrium generator