fixing newline output