updating globals parsing