need to debug curvature