modify adapter