made a method to find the matches from the path.