figuring out md