add ring statistic function