saves the parameters in the curve