changes in code for linear-linear geometries difference