adding code in from Rmd derived file