update index for sed.