restruct the files