update index part 1