add pair condition