remove redundant items