adding the curvature filter