moved index2 to index