modify the structure of the file