changed factor output to character