implemented bezier curve segments