implemented type auto linking feature