element name should be received from the field name, not the type