automatically calculating link score