index now works