prettyfied the output of totals