rejigged output format for pipeline