more work on getting index