update index according to new ulam function