bash_functions to functions