cleaning up for cran submission