links up lines into bubbles