add node modules
calculate subtotals