changes to index for challenge 2