you could push this variable down closer to the where it is used to reduce spanning