cleaning up MD