value writes into txt file