broke out extern vars into three declerations.