fix printing of nonpairs