text refac