for phase equilibrium done