fix rmd syntax