adapt function

Adapting sdm* objects in the new version