modified InvertedIndex