cleaning up output