aggregation works on api