clear output before refresh