use coefficients instead of coefs for new version of R