make the index work.