faster RV algorithm wip