refactor in class links