make the n-of-a-kind check more explicit