match on data 'pair' instead of class