removed _ctx and shortened aggregation and aggregations variables to _agg and _aggs