added adapter class