upgraded R version to 3.1.1