remove redundancies