modifications to total_row; fix percentages column