change rdoc to dm