calc and store fib