added least squares estimator