upadate index