text refactorging