move 'var arg' declaration to appease jshint