remove argsort from rank