refactoring admin statistic