fixed main.php