added demeaning of data and regressors