comment on saveToFile