implemented findEntity