implemented cluster merging, problem now is that we're querying for too many to begin with