output has been finished