when starting with var it makes a new variable; you might see a warning about “shadowing” this is when you create a new variable that has the same name as an existing one, but this new variable is in a lower “scope”. You are only editing the lower scope variable, try removing the var within this function.