fixed the index example