2 errors left...
...problem with d_curve