added getFieldType method