cleaned up curves and some functions of pline