use residuals