accepted by CRAN