final version being submitted to CRAN