chngd now determination of y-dof for CR edges not assuming that ydof = xdof+1