update aggregation script