all outs func
groupedBy