updating a file