define gemdphi after fiducial check