use an outer local variable