use ``isinstance`` as well