figuring out the link loop