add matchpairs.