indexer working with scanner and hashtable