initial work on curvature optimization