changes adapter to use base adapter object