remove some redundant new lines