extracted statistics generation to method
Refactored