working characterization code