added resids to regressions