rearrange the structure of the files