taking care of duplicate files.