tweak: use Aggregation framework instead of map/reduce