implement statistic