add the function of saving file to the place you want