adapt to md