now linreg is working