udpate index file