added functionality in R studio