working with md