print out for saveToFile