changed R version to 3