adding and fitting curve now works nicely