figuring out links