restruct hierechy