small changes to R