rearranged newlines in some output