remove repeated element from file list to make each file is unique