re-arranging hierarchy