replace type column with field name