reorganizing R files