update master_template