new function for rmsne stat