Rid of redundant elements