removal of redundunt entries