complexity of hierarchy