working on grouping element references. maybe override eq.
group by