generate.php update