fix link location and remove unnecessary code