near finalize, need output finalize