fixing variables_global
fixing variables_global