moved global denormalize declaration so variable is not referenced before assignment