working on adapter