why not isinstance?