cleanup and remove duplicate files