modified 'main.php'