add subfield querying function