change index to uid