phase transition problem