added index to player attributes