added subtotals