fixed the output with a hack helper function.  Must be a better way...