created the adapter