to get a perfect text