clean up the output