pairs checked, corrections; should use innervar in place of obj everywhere,
and include other cases in innervar.