replace data in file