removed extra line ending when outputting process buffer