added conditional statement for finding link location