added index to player