finalize a working version