add pair pattern