modified index to add player