**Tell us what’s happening:**

I am stuck. I can’t figure out how to combine these functions. And I tried using .filter(oddNums) in my final return statement and it didn’t work also. Thanks in advance any help is much appreciated!

**Your code so far**

```
//array with all fibonnacci numbers
function fibs(num) {
var x=[1,1];
while (((x[x.length-1]) + (x[x.length-2]))<=num){
x.push((x[x.length-1]) + (x[x.length-2]));
}
return x;
//filter only odd numbers using %2 !=0
function oddNums(x){
var oddArr= [];
for (var i=0; i<=x.length; i++){
if (x[i] %2 !=0){
oddArr.push(x[i]);
}}
return oddArr;
//sum all odd numbers using reduce function
function sum(acc, val){
return acc+val;}
//final return
return oddArr.reduce(sum());
}}
sumFibs(10);
```

**Your browser information:**

Your Browser User Agent is: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7`

.

**Link to the challenge:**

https://www.freecodecamp.org/challenges/sum-all-odd-fibonacci-numbers