resid typo