use attributed text as model intead of text