updating index now works as expected