matchingfiles method