update the index of the assest