delete redundant things