added quad algebra. bezier approximated