# Learn functional programming by building a spreadsheet step 23

instructions
“Now declare a length variable and assign it the length of your sorted array, and a middle variable that has the value of the length divided by 2, subtracted by 1.”
`const median = nums => { const sorted = nums.slice().sort((a, b) => a - b); const length = sorted.length; const middle = (length / 2) - 1; }`
Error message: “You should assign middle the value of dividing your length variable by 2. You should subtract 1 from your length / 2 calculation.”

Can someone please Fully explain why, the fCC test is not accepting this code? Thank you.

Parenthesis is not needed around `length / 2`. This is a bit strict on the test side. Would you be interested in making issue on github for this problem? Sign in to GitHub · GitHub

hi Sanity, thank you for your response. yes I can create an issue on github for this.
Is there a specific repo within freeCodeCamp profile I need to raise this?

The main one - `freeCodeCamp`

There isn’t an ‘Issues’ tab on the main freeCodeCamp github site

Is there a specific repository I should raise the issue on?
https://github.com/freecodecamp