fix subtotals, console log