indexing mostly working