refactor UnitStatistics