added Austin's RCPP code