hierachical rearranged for doc