changes for showing subtotals