optimizate to make the quad curve