create bash_function