improving MD for Doc