put last newline back in