update_links works perfectly now