removed dependence on R language