changed main.php