near finalize