change index to simpler one