modify get link logic