cleaning the output