changing the semantics of level so it reflex the max level of a category in a hierarchy