better replacement of text