phase Separation and phase transitions