clearing redundancies