cleaned up the curve vertices stray variable