update adapter