R programming changes