modify file struct