cleanup tempfile
histogram labels when only one output category