refined the find() method