change the structure of the file