refactored 'pair' and 'of a kind' evaluations