bug fixing

Can't I just add `v` as a function parameter?