updated the r code for the changesets