modify the collect module to be used with hierarchicals tags