least squares added