change adapter code

Change-Id: Id5709d8ac723b31596ec97cf251ef09f343372c6