removed some rcpp warnings