made the rank indexOf public