var should only be called on a variable once within a function