made CRAN-friendly (R CMD check --as-cran)