made CheckSameFilesMethod