partially working quadratic bezier curves