new phasing code