cleanup model output