add phases, A,B