change text and index