got characterization code working