canonicalize generated output