major changes to index.php