document the visit_links method