tweak rcpp usage in ssa
tweak rcpp usage in ssa