save file after processing