added changes for phase analysis