fixed for cran submission