factor fib into module