slight modification to index.php