tried to fix bezier curve