update index after cd