working on custom adapter