improve sRNA_stat function