cleaning up the output