switching to inverted index batch + removing debug code