handling B, X and Z characters fixed