delete redundant lines