catching virtual code, and fixing error in pair mix