small changes forced upon the package by Rcpp