optimize TextConfigure