use argument var for adapter_class