working on the index