index 2 name changed to index for assignment