tmp restruct