use type as the csv column header