updated index to delete extraneous text