removed unused functions from index.php