removes redundant files.