add functions to get product totals