revised index.php