function find() for all elements