comments in main rearanged globals initalize