sm->md