Returning index
Fixing rake