simplified the index.php