change index type