fix trailing newline