fixed issue with this outputting carriage return and newline