added profits and totals