some link code changes