fix new line format issues