fixing productStatsCalculator