remove some unnecessary code from index.php