udpate index