get rid of redundancies