broken version
fixing index