curvature now works