restructure using Rmd