added index to ranking