finalize master