reformatted cart and added totals