make curvature difference pruning linear