updating adapter pattern