struct the index