add savingtext and out.txt