custom adapter now working