added totals dynamic