reflected change of saveFile method