updated r files