added average and total stats