removing links from files