update fib iterative method