Changed index to index2 to resolve conflicts