What is the "it"?
Is this a problem with the scope of a variable?
Variables declared inside of a {} pair are not known outside of the {}s.

Does the posted code work
or does it have the...