debugging phi function placement