small additions to the wrr algo