add adapter class