removing unnecessary line breaks