changes some references to intanceof to 'instance of'