changed global_functions