improve na
simplify Rstats.h