link update for encode