updated Rmd file