made the index do the writing