added totals model