modified demo.php