link cycle problem