add text transformer and constraint