minor changed to globals