fixed R files