change file generate.php