modify the file struct.