update inverted table