modifies some links