updating the index header