totals are computed correctly