update tmp index