update temp index