changed header print order to column (last-index) major