Removed unneeded 'value' variable from index method