updating adapter example