least squares working.