remove unneeded new lines