#69 variable needs to be declared global before using it.