why put this in the var() block instead of the if scope?