remove redundant things