don't need `text.length` here