wrote adapter
adapter verified to work