generate.php changes