removes unnecessary third variable from fib function