custom myFind function