polishing up index.php