reorganize hierarchy.