fixed error in rankAux