finishing up output