update codes for XtoZh