match the fib function to the strict fibonacci definition