removed link detection because its not working correctly