linking and seperation done