trying to use an RObject instead