use ``isinstance`` please