prototype of add-link