working on an index list