modified stats to conserve memory by keeping running totals instead of storing all data