how to solve residuals - Search