find correct read group more efficiently