updated variable that totals out values