fixing cran warnings