more cleaning of rmd file