removes redundant files