correcting duplicate linking functionality