cleanup of output