adjusted external global calls so that each file only calls the global variables it actually utilizes