rename function bezier_curve to bezier_segment