clean up output