support for prepending the totals row