update master.php