okay for now, this is too slow for huge sets still

I’ll work on speeding this up later.