update link code