update index for next session