init the index