reverse two arguments in collect_links