replacing link script