make getOperandNum a static function (since it's just used by