updated to work with string field type