better handling of total column