fixed indexer for one thread case