clean up ring_vs_z output