introduced analysis2, see how to determine the phases