separate the algorithm part of links