renamed function setFieldType to setFieldInfo