updated link.c