switches chr to varchar to handle x...