new scripts for R