improve the link retrieval when there is several type of links