working on bezier
fixed bug with bezier, it is now working