added indexing in freqtools