making progress on ranking.  I think the the issue now is that bPos is not being updated properly