updating the file