updated the text in file