changed inverted index structure