small changes into main.php