refactor meta-pair conditional