check for pairs