inverse operation to getAnchors()