add total field