updated link verifying code