finalize form