R version cleaned up