rmd snippet