fixed bug in paired