debug code removed from index.php