actually the isinstance is ok