modify sample.txt again and again