update text and refs