some redundant code removed from RoleHierarchy