detect link