starting to write the link code