characterization code