copied code into index.php