hierarchy helper method