custom adapter works