add anchors to writing