correct the signature of saveAs