re-coding in Rmd only