add fun_name in bb structure