text refinement