compare produces totals