upgrading index.php