code review. Statistics fix