implementing curvature