finalize building