updates the file content