remove unnecessary line breaks