changed invokation of instanceof to shortname