make necessary link changes