update the Index