small changes to comply with cran checks