filled in remaining code that was missing from adapter