updated R files