beginning merge of connecting lines