stop traversal once identifier is found