added printCurve.