statistics and refactoring