added line ending for csv printout