Did you really mean to overwrite with the same variable name as in the function parameters? Seems confusing to me.