'residuals' is a string, not a variable