update sequence