output and finished