improved Rmd