clean up adapter