changed way aggregators are called for tree