curvature now working