[minor] replacing adapter.add with adapter.set