added order to aggregate
tree summarizing added , addresses #2