returning embedded links in main_func