upate index