removes redundancy