Got rid of extra variable on index.php