change the index type