add anchors for each line