update sequence stack