writing MD