update sequence of function