Sub OF curvz2curvy