second reduction type, still testing the idea
group bys