small changes to demo.php and logic.php