working with custom adapters