removed extra newline characters in printer