set the adapter