refactor text