check instanceof