updating text file because it was not working