bug fixing: change the combination rule of pairtypes