fixing newline issue