added functionality for modular fib