Nonlinear least square fiitings