change coordinator as adapter.
code clean up.