use set instead of vector for link handling