distinguish between internal and external links