add type to custom field