event reducer for hierarchical schema