adding links to promises algorithms