this is twice faster and conceptually cleaner
aggregate all arrays in one go
do low mid high
weird commit