update specialization relationship