changed to coef, fitted, residuals and predict functions