statistics, refactoring