fixing cran errors