rules and testing of pairs are done