indexing works