getting the curve to draw