make the index