update rank index