refactored statistics model to remove code duplication