piecing curves