switch field name for variable