instanceOf and return object