improve performance by implementing aggregateArrs method directly instead of using the InlineAggregate macro