remove some redundant lines