residuals methods are added for regressions